const express=require('express')
const router=express.Router()
 
//获取用户资料
router.get('/profile/:username',async(req,res,next)=>{
    try {
        res.send('ok')

    } catch (error) {
        next(error)
    }

})
//关注用户
router.post('/profile/:username/follow',async(req,res,next)=>{
    try {
        res.send('ok')

    } catch (error) {
        next(error)
    }

})
//取消关注
router.delete('/profile/:username/follow',async(req,res,next)=>{
    try {
        res.send('ok')

    } catch (error) {
        next(error)
    }

})
module.exports=router